<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<c:set var="ctx" value="${pageContext.request.contextPath}" />

<script type="text/javascript" src="${ctx }/js/jquery.min.js"></script>
<script type="text/javascript" src="${ctx }/js/jquery.easyui.min.js"></script>
<script type="text/javascript" src="${ctx }/js/main.js"></script>
    
<link href="${ctx }/css/base.css" rel="stylesheet">
<link href="${ctx }/css/platform.css" rel="stylesheet">
<link rel="stylesheet" href="${ctx }/custom/uimaker/easyui.css">

<style type="text/css">
	#dataForm table{
		border: 1px solid #94BAE7;
		width: 100%;
		height: 100%;
		font-size: 12px;
		margin: 0;
		min-width: 430px;
		height: 250px;
	}
	#dataForm table td{
		border-right: 0px solid #94BAE7;
		border-bottom: 0px dashed #94BAE7;
		padding: 5px;
	}
	#dataForm table td input{
		padding-top:5px;
	}
</style>
<script type="text/javascript">
	$(function(){
		$(document).keydown(function(e){
			$('#tb').datagrid('options').singleSelect=false;
		});
		$(document).keyup(function(e){
			$('#tb').datagrid('options').singleSelect=true;
		});
	});
	function rebuilTable(){
		var tds = $('#dataForm table td');
		$.each(tds, function(i,td) {
			if(i<tds.length-2){
				$(this).css({"border-bottom":"1px dashed #94BAE7"});
			}
			if(i%2==0){
				$(this).css({"border-right": "1px solid #94BAE7"});
			}
		});
	}
	function submitData(url,data){
		var r;
		$.ajax({
			async:false,//异步变同步
			type:'post',
			url:url,
			data:data,
			dataType:'json',
			success:function(result){
				r = result;
			}
		});
		return r;
	}
	
	
	
	
	
	
	
	
	
</script>